home *** CD-ROM | disk | FTP | other *** search
/ CU Amiga Super CD-ROM 23 / CU Amiga - Super CD-ROM 23 (June 1998).iso / CUCD / Programming / OUI / include / gadgets / rcs / eroll.h < prev    next >
Encoding:
C/C++ Source or Header  |  1998-04-08  |  1.2 KB  |  72 lines

  1. head    1.1;
  2. access;
  3. symbols;
  4. locks
  5.     dlorre:1.1; strict;
  6. comment    @ * @;
  7.  
  8.  
  9. 1.1
  10. date    96.08.22.02.06.07;    author dlorre;    state Exp;
  11. branches;
  12. next    ;
  13.  
  14.  
  15. desc
  16. @Oui.lib -- Object User Interface
  17. Projet créé en 1994
  18. Auteur: Dominique Lorre
  19. @
  20.  
  21.  
  22. 1.1
  23. log
  24. @Initial revision
  25. @
  26. text
  27. @#ifndef CLASS_EROLL_H
  28. #define CLASS_EROLL_H
  29.  
  30. #ifndef EXEC_TYPES_H
  31. #include <exec/types.h>
  32. #endif
  33.  
  34. #ifndef CLASS_WINDOW_H
  35. class window ;
  36. #endif
  37.  
  38. #ifndef CLASS_GADGETLIST_H
  39. class gadgetlist ;
  40. #endif
  41.  
  42. #ifndef CLASS_GADGET_H
  43. #include "gadgets/gadget.h"
  44. #endif
  45.  
  46. // ========================================================================
  47. // ============================  EROLL CLASS =============================
  48. // ========================================================================
  49.  
  50.  
  51. class eroll : public gadget
  52. {
  53. long    cursel ;
  54. long    rmin ;
  55. long    rmax ;
  56. BOOL    rfull ;
  57. public:
  58.     eroll(gadgetlist *gl,
  59.                void (window::*func)(gadget *, unsigned long, unsigned short),
  60.                long min,
  61.                long max,
  62.                long level,
  63.                BOOL full=FALSE) ;
  64.     ~eroll() ;
  65.     void set(long level, long min=-1, long max=-1, short disable=FALSE) ;
  66.     void action(unsigned long classe, unsigned short code) ;
  67.     void keystroke(BOOL shifted) ;
  68. };
  69.  
  70. #endif
  71. @
  72.